#include <stdio.h>
/* C's header uses < > */
#include "vector.h"
/* programmer's header uses " " */
Vector Vector_construct(double x, double y)
{
  Vector v;
  v.vx = x;
  v.vy = y;
  return v;
}

Vector Vector_add(Vector v1, Vector v2)
{
  Vector v3;
  v3.vx = v1.vx + v2.vx;
  v3.vy = v1.vy + v2.vy;
  return v3;
}

Vector Vector_subtract(Vector v1, Vector v2)
{
  Vector v3;
  v3.vx = v1.vx - v2.vx;
  v3.vy = v1.vy - v2.vy;
  return v3;
}

void Vector_print(Vector v)
{
  printf("x = %f, y = %f\n", v.vx, v.vy);
}
